From e8376f5c0124fa6399fddb4c0952cfa124a35bc7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Wed, 3 Jan 2018 15:01:12 +0100 Subject: [PATCH] liststore: Make a code snippet compile --- gtk/gtkliststore.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c index ffbd17bcae..cc0ecb3fcc 100644 --- a/gtk/gtkliststore.c +++ b/gtk/gtkliststore.c @@ -2164,8 +2164,17 @@ gtk_list_store_has_default_sort_func (GtkTreeSortable *sortable) * `gtk_list_store_insert_with_values (list_store, iter, position...)` * has the same effect as calling * |[ - * gtk_list_store_insert (list_store, iter, position); - * gtk_list_store_set (list_store, iter, ...); + * static void + * insert_value (GtkListStore *list_store, + * GtkTreeIter *iter, + * int position) + * { + * gtk_list_store_insert (list_store, iter, position); + * gtk_list_store_set (list_store, + * iter + * // ... + * ); + * } * ]| * with the difference that the former will only emit a row_inserted signal, * while the latter will emit row_inserted, row_changed and, if the list store -- 2.30.2